package com.imu.common.exception;

/**
 * 错误枚举类
 * @author sunhongwei
 * @email sunhongwei@jshijian.com
 * @date 2017年11月4日 上午11:07:35
 */
public enum ErrorDesc
{
	TOKEN_EMPTY(503, "当前信息已过期,请重新登陆!"),
	SESSION_EMPTY(501, "SESSION过期或不存在"),
	SECRET_EMPTY(502, "密钥不能为空"),
	SYSTEM_ERR(600, "系统出错，请稍后再试"),
	PURSE_LESS(510, "用户余额不足,请充值"),
	PURSE_ERROR(511, "获取钱包失败"),
	PARAM_EMPTY(512, "参数不能为空"),
	REG_ERROR(513, "注册失败，请稍后再试"),
	PHONE_EMPTY(514, "手机号不能为空"),
	PWD_EMPTY(515, "密码不能为空"),
	ACODE_EMPTY(516, "验证码不能为空"),
	INV_CODE_ERR(517, "邀请码有误"),
	PHONE_REG(518, "该手机已注册"),
	PHONE_ERR(519, "请输入正确的手机号"),
	TYPE_ERR(520, "类型不匹配"),
	TYPE_EMPTY(521, "类型不能为空"),
	SIGN_EMPTY(522, "签名不能为空"),
	SIGN_ERR(523, "请求不合法"),
	GET_USER_ERR(524, "获取用户信息失败"),
	PHONE_UNREG(525, "该手机未注册"),
	ACODE_SED_ERR(526, "手机验证码发送失败"),
	ACODE_SEND(527, "获取验证码太频繁,稍后再试"),
	ACODE_ERR(528, "未获取到手机验证码"),
	ACODE_ERROR(529, "手机验证码输入错误"),
	PHONE_OR_PWD_REG(530, "手机号或密码错误"),
	ACC_SUSPEND(531, "账号已被封，请联系客服"),
	USER_UEXIST(532, "用户不存在"),
	INV_CODE_EMPTY(533, "邀请码不能为空"),
	KEY_EMPTY(534, "关键词不能为空"),
	IDCARD_USED(535, "身份证已被使用"),
	USER_TAG_EXIST(536, "该标签已经存在了"),
	PAY_WAY_UNEXIST(537, "支付方式有误"),
	PAY_ALI_ORDER_ERR(538, "支付宝订单生成失败"),
	PAY_WE_ORDER_ERR(539, "微信订单生成失败"),
	SIGN_VERIFY_ERR(540, "订单签名验证失败"),
	PAY_ORDER_ERR(541, "订单生成失败"),
	ORDER_EXIST(542, "支付订单已存在,歇会再试"),
	PAY_TYPE_UNEXIST(543, "支付类型有误"),
	RECEIPT_EMPTY(544, "凭证不能为空"),
	APPLY_SERVER_ERR(545, "苹果服务器没有返回验证结果"),
	APPLY_BILL_ERR(546, "账单无效[%s]"),
	APPLY_BILL_REP(547, "该订单己交易过,不可重复交易"),
	PAY_TOO_OFTEN(548, "您的交易太过频繁,请稍后再试"),
	PAY_TIME_EMPTY(549, "交易时间不能为空"),
	SEX_ERR(550, "性别输入有误"),
	REPURSE_LESS(552, "充值吸引值不能小于70000"),
	ATTRA_LESS(553, "吸引值不能小于100000"),
	PAY_GIVE_ERR(554, "您已经领过奖励，不可贪心"),
	PHOTO_ACODE_ERROR(555, "图片验证码不正确"),
	Identity_Iuthentication_Code(556, "身份认证码不正确"),
	Identity_Exists(557,"我的密钥已存在"),
	Identity_NoExists(558,"我的密钥不存在"),
	MONEY_PACK_ERROR(559,"系统维护中,请稍后再试"),
	MONEY_PACK_ADDR_ERROR(560,"系统维护中,请稍后再试"),
	MONEY_PACK_ADDR_INVALIDE(561,"转出目标信息有误"),
	MONEY_PACK_LIMIT(562,"钱包金额不够"),
	TRADE_PWD_ERROR(563,"支付密码错误"),
	TRADE_SAME_ACCOUNT(564,"转账接受人不能为自己"),
	TRADE_MONEY_OVER_RATE(565,"转账金额不小于交易费"),
	SYSTEM_BUSY(566,"系统繁忙,请稍后再试"),
	MONEY_ERROR(567,"订单金额有问题"),
	MAX_VALUE(568,"每日最大交易100IMU"),
	NEGATIVE_MONEY(569,"IMU数量不能小于0"),
    TRANS_OUT_ERROR(570,"系统维护中，暂停IMU转出..."),
	USER_DISABLE(571,"该账号被禁用"),
	YTF_TYPE_ERROR(572,"目标类型有误"),
	YMB_LESS_THAN(611,"易买宝余额不足"),
	IMU_LESS_THAN(612,"IMU余额不足"),
	GET_LESS_THAN(613,"GET余额不足"),
	PASS_SIMPLE(573,"密码过于简单"),
	IMU_LESS(574,"账户IMU数量不足"),
	PRIEQUITY_THAN(613,"您私募的金额已超过私募总金额"),
	PRIEQUITY_MORE(614,"私募数量有误请重新填写"),
	PRI_ENABLE_KEY(615,"私募未开启"),
	PRI_QUANTUM(616,"私募数不能大于500"),
	CLUB_NORMAL(618,"普通会员无法降级"),
	CLUB_GRADE_NEXT(630,"SLC私募期,每个等级只可降级一次不可重复降级"),
	BK_QUANTUM_500(619,"贝壳数不能大于500"),
	BK_QUANTUM_2500(620,"当期每个账户最大私募2500个贝壳，您已私募%d个贝壳"),
	TRANS_ENABLE_KEY(700,"转账暂时禁止"),
	USER_TRANS_ENABLE(701,"该用户禁止转账和私募"),
	BANK_ERROR(1002,"未绑定银行卡信息"),
	WITHDRAW_ERROR(1003,"每个账户每天只能提现一次"),
	OUT_IMU_ENABLE(2000,"外部转账只允许IMU"),
	IME_EMPTY(2001,"IMEI不能为空"),
	CHECK_TYPE_ERROR(2002,"生物识别类型不对"),
	IME_ERROR(2003,"IMEI错误"),
	HPWD_ERROR(2004,"手势密码错误"),
	SMS_MIN_FREQUENT(2005,"1分钟之内最多1条短信"),
	SMS_HOU_FREQUENT(2006,"1小时之内最多10条短信"),
	SMS_DAY_FREQUENT(2007,"1天之内最多30条短信"),
	ONE_TRANS_NUM(2008,"一次外部转账最多10个"),
	DAY_OUT_MAX_VALUE(2009,"每日最多允许转出");

	private Integer code;
	private String msg;

	private  ErrorDesc(Integer code, String msg)
	{
		this.code = code;
		this.msg = msg;
	}

	public Integer getCode()
	{
		return this.code;
	}

	public String getMsg() {
		return this.msg;
	}
}